import request from '@/utils/request'

// 查询管控措施列表
export function listGkcs(query) {
  return request({
    url: '/event/gkcs/list',
    method: 'get',
    params: query
  })
}

export function queryGkcs(query) {
  return request({
    url: '/event/gkcs/query',
    method: 'post',
    data: query
  })
}

// 查询管控措施详细
export function getGkcs(gkcsId) {
  return request({
    url: '/event/gkcs/' + gkcsId,
    method: 'get'
  })
}

// 新增管控措施
export function addGkcs(data) {
  return request({
    url: '/event/gkcs',
    method: 'post',
    data: data
  })
}

// 修改管控措施
export function updateGkcs(data) {
  return request({
    url: '/event/gkcs',
    method: 'put',
    data: data
  })
}

// 删除管控措施
export function delGkcs(gkcsId) {
  return request({
    url: '/event/gkcs/' + gkcsId,
    method: 'delete'
  })
}
